var	cpark = new Object;
	
(function() {

	cpark.responseReceived = function()
	{
		//window.console.log("responseReceived entered \(req.readyState="
		// + req.readyState + "\, req.status=" + req.status + "\)");

		if (cpark.req.readyState == 4) { 		// only if req shows "loaded"
			if (cpark.req.status == 200) { 		// only if "OK"
				window.console.log(cpark.req.responseXML);
			}
		}
	};

	cpark.getNaverNews = function()
	{
		window.console.log("getNaverNews");
				
		cpark.req = new XMLHttpRequest();		
		
		var url = "http://openapi.naver.com/search?";
		url += "key=" + "c7008262093d9cce24c4da03b58057b4";
		url += "&target=" + "news";  
		url += "&query=" + "bonus";  
		
		//window.console.log(url);

		req.open("GET", url, true)
		cpark.req.onreadystatechange = cpark.responseReceived;
		cpark.req.send("");
	};

})();